Repository navigation
Pin the install-ID reset and a getBuiltinModule that fails - #45
Merged
Merged
Conversation
The README's "Resetting it" says deleting the file's ID line makes the next start write a new one, but only a missing file and a file of invalid lines were tested. The new test empties the file three ways and checks that a new UUID is written and then reused, and that a value put in by hand is used. installIdFromFile was tested only where getBuiltinModule is missing. The second new test covers one that throws and one that returns nothing: a fresh ID each call, and no file written. No behavior changed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member
Author
|
Self-review rubric (CI-anchored):
One judgment call to flag: the tests/trace-client.test.ts:1212: the getBuiltinModule stand-ins are restored in This review comment was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener). drafted by Claude on behalf of Daniel Stephenson |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stage B (unit-test expansion) cycle on
TraceClient.installIdFromFile. Tests only; no behavior changed."","\n", a comment line) and checks three things: a new UUID is written, it is reused on the next call, and a value put in by hand is used as is.getBuiltinModulethat fails is now pinned. Only a missingprocess.getBuiltinModulewas tested before. The new test covers one that throws and one that returns nothing fornode:fs. Each call gets a fresh ID and no file is written, which matches the TSDoc ("where that is missing, the ID is kept in memory").No tracking issue: the gap was found during triage.
Skipped issues
User-Agentheader, and whichenabledvalues opt out), so neither was picked up.Test plan
testjob is green on the head SHA (npm run typecheck,npm test), with the executed-test count read from the lognodeis not installed in this session's environment, so CI on the PR head is the gate.Cross-client and changelog
CHANGELOG.md: no entry, because there is no user-visible change (tests only).This PR description was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener).
🤖 Generated with Claude Code
drafted by Claude on behalf of Daniel Stephenson